public class J04by99 {
    public static void main(String[] args) {
        //行数
        for (int i = 1; i <= 9; i++) {
            // 控制列数
            for (int j = 1; j <= i; j++) {
                //System.out.print("1*2=2");
//                int result = j*i;
//                String resultStr = result>9?result+"":result+" ";
                if(j*i<10){
                    //需要补位
                    System.out.print(j + "*" + i + "=" + i*j + "  ");
                }else{
                    //不需要补位
                    System.out.print(j + "*" + i + "=" + i*j + " ");
                }


            }
            System.out.println();
        }
    }
}
